package com.panshi.service.impl;

import com.panshi.mapper.IDepartementMapper;
import com.panshi.pojo.Departement;
import com.panshi.service.IDepartementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

@Service
public class DepartementServiceImpl implements IDepartementService {

    @Autowired
    IDepartementMapper iDepartementMapper;

    @Override
    public Collection<Departement> getDepartments() {
        return iDepartementMapper.getDepartments();
    }

    @Override
    public Departement getDepartment(Integer id) {
        return iDepartementMapper.getDepartment(id);
    }
}
